package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@Table(name = "event_customer")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EventCustomer implements Serializable {

    @Transient
    private static final long serialVersionUID = 965366833547901457L;

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long customerId;
    private String eventName;
    private String eventType;
    private String type;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private ZonedDateTime startTime;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private ZonedDateTime endTime;
    private String dealMethod;
    private String detail;
    private String createBy;
    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

    @Transient
    private Integer count;

    private String month;
    private String deviceId;
    private String deviceName;



    @JsonIgnore
    @Transient
    private Customer customer;

}
